CC=mcs
CFLAGS=-r:System.Data -pkg:gtk-sharp -pkg:glade-sharp
SSCLASS=scoreclass.cs
SSCLI=sharpscorecli.cs
SSGUI=sharpscoregui.cs
SSGLADE=sharpscoreglade.cs
GLADEFILE=sharpscore.glade
RM=/bin/rm

ifdef V
else
MAKEFLAGS=-s
endif

all: gui cli

gui: sharpscoreglade.exe

cli: sharpscorecli.exe

sharpscoreglade.exe: $(SSCLASS) $(SSGLADE) $(GLADEFILE)
	echo "Sharpscore: Compiling GUI"
	$(CC) $(SSCLASS) $(SSGLADE) $(CFLAGS) -out:sharpscoreglade.exe

sharpscorecli.exe: $(SSCLASS) $(SSCLI)
	echo "Sharpscore: Compiling CLI"
	$(CC) $(SSCLASS) $(SSCLI) $(CFLAGS) -out:sharpscorecli.exe

clean: 
	echo "Cleaning up"
	$(RM) *.exe
